import './Backdrop.css'

import React from 'react'
import ReactDOM from 'react-dom'

const backdropRoot = document.getElementById('backdropRoot')

export const Backdrop = (props) => {
  return ReactDOM.createPortal(
    <div className='backdrop'>
        {props.children}
    </div>, 
    backdropRoot
  )
}
